package cn.edu.xmu.restfuldemo.mapper;

import cn.edu.xmu.restfuldemo.model.GoodsPo;
import cn.edu.xmu.restfuldemo.model.Orders;
import cn.edu.xmu.restfuldemo.model.OrdersPo;
import org.apache.ibatis.annotations.Mapper;
import  cn.edu.xmu.restfuldemo.model.OrderItemPo;

import java.util.List;
@Mapper
public interface OrdersMapper {

    Integer createOrder(OrdersPo orderPo);

    //创建订单详情
    Integer createOrderItem(OrderItemPo orderItemPo);

    //搜索订单
    List<OrdersPo> fineorder(OrdersPo orderPo);
}
